package com.million.eduservice.client;

import com.million.commonutils.orderVo.UcenterMemberVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: studyboy
 * @Date: 2022/4/7  17:25
 */
@FeignClient(value = "service-ucenter", fallback = UserClientFallbackService.class)
@Component
public interface UserClient {

    //根据用户id 查询用户信息
    @GetMapping("/educenter/member/getMemberInfoById/{memberId}")
    public UcenterMemberVo getMemberInfoById(@PathVariable("memberId") String memberId);
}
